import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from '@/App.vue'
import router from '@/router'
import '@/permission'
import svgIcon from '@/components/svg/index.vue'
import 'virtual:svg-icons-register'
import '@/assets/styles/base.less'
import 'element-plus/dist/index.css'
import 'nprogress/nprogress.css'
import '@/assets/styles/common.less'
import '@/icons/iconfont.js'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPersist)
app.use(pinia)
app.use(router)
app.use(ElementPlus, {
  locale: zhCn
})
app.mount('#app')
